package com.luck.pf.security.role.logic;

import java.util.List;

import com.luck.org.entity.SysLog;
import com.luck.org.entity.SysRole;
import com.luck.pf.common.entity.UserBean;
import com.luck.pf.framework.logic.IBaseLogic;
import com.luck.pf.security.role.qry.RoleQry;
import com.luck.pf.util.Page;

/**
 * 说明:
 * Copyright: Copyright (c) 2010
 * @author zhangwr 2011-8-10 下午02:39:46
 * @version 1.0
 */
public interface IRoleLogic extends IBaseLogic {
	public Page findRolePage(RoleQry qry) throws Exception;
	public String saveRole(SysRole role,UserBean userBean) throws Exception;
	public String deleteRole(SysRole role,UserBean userBean, SysLog log) throws Exception;
	/**
	 * 保存角色的权限
	 */
	public String saveRoleAuth(SysRole role, String menuIds) throws Exception;
	/**
	 * 查询角色
	 * @param qry
	 * @return
	 * @throws Exception
	 */
	public List<SysRole> findRoles(RoleQry qry) throws Exception;
	
}
